using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class DMS064ManagerBase
    {
        public DMS064ManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity Insert(DMS064Entity obj)
        { 
            return (DMS064Entity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity Update(DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.Update(obj);             
        }
 
 
        public DMS064Entity Delete(DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_CODE (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_CODE 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_CODE (string P_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_CODE = P_CODE;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_TYPE (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_TYPE 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_TYPE (string P_TYPE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_TYPE = P_TYPE;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_NAME (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_NAME");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_NAME 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByP_NAME (string P_NAME )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_NAME = P_NAME;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"P_NAME");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByAREA_CODE (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"AREA_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien AREA_CODE 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByAREA_CODE (string AREA_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.AREA_CODE = AREA_CODE;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"AREA_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByACTFLG (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByACTFLG (string ACTFLG )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.ACTFLG = ACTFLG;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDUSR (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDUSR (string CTDUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDUSR = CTDUSR;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDWKS (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDWKS (string CTDWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDWKS = CTDWKS;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDPGM (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDPGM (string CTDPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDPGM = CTDPGM;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDDTM (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByCTDDTM (DateTime CTDDTM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDDTM = CTDDTM;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFUSR (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFUSR (string MDFUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFUSR = MDFUSR;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFWKS (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFWKS (string MDFWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFWKS = MDFWKS;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFPGM (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByMDFPGM (string MDFPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFPGM = MDFPGM;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByLSTMDF (DMS064Entity obj)
        { 
            return (DMS064Entity)Adapter.DeleteByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF 
        /// </summary>
        /// <returns>DMS064Entity</returns>
        public DMS064Entity DeleteByLSTMDF (DateTime LSTMDF )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.LSTMDF = LSTMDF;  
            return (DMS064Entity)Adapter.DeleteByField(obj,"LSTMDF");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public DMS064Entity Select(DMS064Entity obj)
        { 
            return (DMS064Entity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS064Entity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS064Entity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new DMS064Entity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new DMS064Entity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS064Entity> SelectAllLST()
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS064Entity()),new DMS064Entity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS064Entity> SelectAllLST(SelectOptions option)
        { 
            return (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS064Entity(),option),new DMS064Entity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"P_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"P_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_CODELST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_CODELST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"P_CODE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (string P_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_CODE = P_CODE;  
            return Adapter.SelectByField(obj,"P_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (string P_CODE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_CODE = P_CODE;  
            return Adapter.SelectByField(obj,"P_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_CODELST (string P_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_CODE = P_CODE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_CODELST (string P_CODE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_CODE = P_CODE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_TYPE (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"P_TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_TYPE (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"P_TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_TYPELST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_TYPE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_TYPELST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"P_TYPE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_TYPE (string P_TYPE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_TYPE = P_TYPE;  
            return Adapter.SelectByField(obj,"P_TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_TYPE (string P_TYPE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_TYPE = P_TYPE;  
            return Adapter.SelectByField(obj,"P_TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_TYPELST (string P_TYPE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_TYPE = P_TYPE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_TYPE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_TYPELST (string P_TYPE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_TYPE = P_TYPE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_TYPE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"P_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"P_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_NAMELST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByP_NAMELST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"P_NAME",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (string P_NAME )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_NAME = P_NAME;  
            return Adapter.SelectByField(obj,"P_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (string P_NAME, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_NAME = P_NAME;  
            return Adapter.SelectByField(obj,"P_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_NAMELST (string P_NAME )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_NAME = P_NAME;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByP_NAMELST (string P_NAME, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.P_NAME = P_NAME;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAREA_CODE (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"AREA_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAREA_CODE (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"AREA_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByAREA_CODELST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AREA_CODE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByAREA_CODELST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"AREA_CODE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAREA_CODE (string AREA_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.AREA_CODE = AREA_CODE;  
            return Adapter.SelectByField(obj,"AREA_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAREA_CODE (string AREA_CODE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.AREA_CODE = AREA_CODE;  
            return Adapter.SelectByField(obj,"AREA_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByAREA_CODELST (string AREA_CODE )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.AREA_CODE = AREA_CODE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AREA_CODE"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AREA_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByAREA_CODELST (string AREA_CODE, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.AREA_CODE = AREA_CODE;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AREA_CODE",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByACTFLGLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByACTFLGLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ACTFLG",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByACTFLGLST (string ACTFLG )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByACTFLGLST (string ACTFLG, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDUSRLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDUSRLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDUSR",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDUSRLST (string CTDUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDUSRLST (string CTDUSR, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDWKSLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDWKSLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDWKS",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDWKSLST (string CTDWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDWKSLST (string CTDWKS, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDPGMLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDPGMLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDPGM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDPGMLST (string CTDPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDPGMLST (string CTDPGM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDDTMLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByCTDDTMLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDDTM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDDTMLST (DateTime CTDDTM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByCTDDTMLST (DateTime CTDDTM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFUSRLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFUSRLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFUSR",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFUSRLST (string MDFUSR )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFUSRLST (string MDFUSR, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFWKSLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFWKSLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFWKS",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFWKSLST (string MDFWKS )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFWKSLST (string MDFWKS, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFPGMLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByMDFPGMLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFPGM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFPGMLST (string MDFPGM )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByMDFPGMLST (string MDFPGM, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS064Entity obj)
        { 
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS064Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByLSTMDFLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectByLSTMDFLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LSTMDF",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByLSTMDFLST (DateTime LSTMDF )
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS064Entity> SelectByLSTMDFLST (DateTime LSTMDF, SelectOptions option)
        { 
            DMS064Entity obj = new DMS064Entity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF",option),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectWithConditionLST (DMS064Entity obj)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new DMS064Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS064Entity></returns>
        public List<DMS064Entity> SelectWithConditionLST (DMS064Entity obj,SelectOptions option)
        { 
            return  (List<DMS064Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new DMS064Entity());
        }

}
}
